<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
	<title>列表</title>
</head>

<body>
	<c:if test="${not empty message}">
		<div id="message" class="alert alert-success"><button data-dismiss="alert" class="close">×</button>${message}</div>
	</c:if>
	
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
					<th>OPERATION_ID</th>
					<th>OPERATION_NAME</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${operations.content}" var="entity">
			<tr>
								<td><a href="${ctx}/admin/operations/update/${entity.operationId}">${entity.operationId}</a></td>
									<td>${entity.operationName}</td>
								
					<td><a href="${ctx}/admin/operations/delete/${entity.operationId}">删除</a></td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<tags:pagination page="${operations}" paginationSize="5"/>
	<div><a class="btn" href="${ctx}/admin/operations/create">新增</a></div>
</body>
</html>
